package com.eedi.framework.user.enums;


import com.eedi.framework.common.exception.ErrorCode;
import com.eedi.org.enums.OrgErrorCode;
import com.eedi.org.enums.OrgErrorCodeType;

/**
 * Member 错误码枚举类
 * <p>
 * member 系统，使用 1-004-000-000 段
 */
public interface OrgUserErrorCodeConstants {

    // ========== 用户相关 ============
    ErrorCode ORG_USER_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,1, "用户不存在");
    ErrorCode ORG_USER_MOBILE_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,2, "手机号未注册账号");
    ErrorCode ORG_USER_MOBILE_USED = new OrgErrorCode(OrgErrorCodeType.USER,3, "修改手机失败，该手机号({})已经被使用");
    ErrorCode ORG_USER_INFO_NULL= new OrgErrorCode(OrgErrorCodeType.USER,4, "未找到用户信息");
    ErrorCode ORG_USER_ROLE_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,5, "用户无当前应用访问权限");
    ErrorCode ORG_ACCOUNT_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,6, "账号不存在");
    ErrorCode ORG_USER_PASSWORD_FAILED = new OrgErrorCode(OrgErrorCodeType.USER,7, "用户密码校验失败");
    ErrorCode ORG_QUALIFICATION_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,8, "医生资格证信息不存在");
    ErrorCode ORG_USER_ACCOUNT_OR_MOBILE_NULL = new OrgErrorCode(OrgErrorCodeType.USER,9, "账号和手机号均不能为空");
    ErrorCode ORG_USER_MOBILE_NO_CHANGE = new OrgErrorCode(OrgErrorCodeType.USER,10, "手机号未发生改变");
    ErrorCode ORG_USER_NEWPWD_CONFIRMPWD_NOT_EQUAL = new OrgErrorCode(OrgErrorCodeType.USER,11, "用户新密码与确认密码不一致");
    ErrorCode ORG_USER_BLACK_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,12, "用户黑名单信息不存在");
    ErrorCode ORG_USER_BLACK_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,13, "用户黑名单信息已存在，无需重复添加");
    ErrorCode ORG__USER_ACCOUNT_NOT_MATCH = new OrgErrorCode(OrgErrorCodeType.USER,14, "用户账号信息不一致，请检查");
    ErrorCode ORG_USER_LOGIN_ID_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,15, "登录ID已被占用，请使用其他组合！");
    ErrorCode ORG_USER_MOBILE_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,16, "手机号已被占用，请用户使用手机找回密码！");
    // ========== 账号相关 ============
    ErrorCode ORG_USER_ACCOUNT_IS_DISABLE = new OrgErrorCode(OrgErrorCodeType.USER,17, "账号已停用");
    ErrorCode ORG_USER_ACCOUNT_IS_ENABLE = new OrgErrorCode(OrgErrorCodeType.USER,18, "账号已启用");
    // ========== 用户收件地址  ==========
    ErrorCode ADDRESS_NOT_EXISTS = new OrgErrorCode(OrgErrorCodeType.USER,19, "用户收件地址不存在");

    ErrorCode COMMON_EXCEL_IMPORT_TEMPLATE_ERROR = new OrgErrorCode(OrgErrorCodeType.USER, 20,"excel导入模板不正确，请下载最新的导入模板！");
    ErrorCode IMPORT_EXCEL_ROW_LIMIT_EXCEEDED = new OrgErrorCode(OrgErrorCodeType.USER, 21,"excel批量导入的数据量【{}】超出限定范围（1~2000行之间）");
    ErrorCode MIME_TYPE_UNMATCHED = new OrgErrorCode(OrgErrorCodeType.USER, 23,"提供的文件类型不正确");
}
